package com.example.demo.entity;


import java.util.List;

/**
 * category对象 category
 * 
 * @author ruoyi
 * @date 2025-04-03
 */
public class Category extends BaseEntity   //1
{
    private static final long serialVersionUID = 1L;

    /** 类别编号 */
    private Long cid;

    /** 类别名称 */

    private String cname;

    /** 类别图片 */

    private String cimg;

    /** 是否显示在主页 */

    private Long isshow;

    //添加商品列表
    private List<Goods> goodsList;   //n

    public List<Goods> getGoodsList() {
        return goodsList;
    }

    public void setGoodsList(List<Goods> goodsList) {
        this.goodsList = goodsList;
    }

    public void setCid(Long cid)
    {
        this.cid = cid;
    }

    public Long getCid() 
    {
        return cid;
    }
    public void setCname(String cname) 
    {
        this.cname = cname;
    }

    public String getCname() 
    {
        return cname;
    }
    public void setCimg(String cimg) 
    {
        this.cimg = cimg;
    }

    public String getCimg() 
    {
        return cimg;
    }
    public void setIsshow(Long isshow) 
    {
        this.isshow = isshow;
    }

    public Long getIsshow() 
    {
        return isshow;
    }

//    @Override
//    public String toString() {
//        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
//            .append("cid", getCid())
//            .append("cname", getCname())
//            .append("cimg", getCimg())
//            .append("isshow", getIsshow())
//            .append("createTime", getCreateTime())
//            .append("createBy", getCreateBy())
//            .append("updateTime", getUpdateTime())
//            .append("updateBy", getUpdateBy())
//            .toString();
//    }
}
